package com.ruoyi.basicdata.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDto {

    // 姓名
    @NotBlank(message = "用户名错误")
    private String username;
    // 性别
    @NotBlank(message = "性别错误")
    private String gender;
    // 电话
    @NotBlank(message = "电话错误")
    private String phone;
    // 验证码
    private String code;
    // uuid
    private String uuid;
    // 微信
    @NotBlank(message = "微信必须填写")
    private String wx;
    // 小区id
    @NotNull(message = "没有小区id")
    private Long villageId;

    // 楼栋id
    @NotNull(message = "没有楼栋id")
    private Long buildingId;

    // 楼栋地址
    @NotBlank(message = "没有地址")
    private String buildingAddress;
}
